<template>
  <div>
    <el-form label-width="100px">
      <el-form-item label="备注：" prop="repayRemark">
        <el-input type="textarea" placeholder="请输入" v-model="repayRemark"></el-input>
      </el-form-item>
    </el-form>
    <p class="tips">你确定要将此客户设置/恢复异常标记吗 ？</p>
    <span slot="footer" class="dialog-footer">
        <el-button @click="cancel">取 消</el-button>
        <el-button type="primary" @click="submitButton">确 定</el-button>
      </span>

  </div>
</template>

<script>
import { compensatoryMark } from "../../assets/js/api";

export default {
  name: "exceptionFlag",
  data() {
    return {
      repayRemark:'',
    };
  },
  props: ["orderNumber"],
  mounted() {
  },
  methods: {

    //确定
    submitButton() {

      compensatoryMark(this.orderNumber,this.repayRemark).then(() => {
        this.closeFun(true);
        this.$emit("dialogCloes");
        this.$message.success('操作成功')
      });
    },
    //取消
    cancel() {
      this.$emit("dialogCloes");
      this.closeFun(true);
    },
    //清空
    closeFun(data) {
      if (data == true) {
        this.repayRemark = "";
      }
    },
  }
};
</script>

<style scoped type="less">
/deep/ .el-form-item__content {
  width: 350px;
  margin-left: 0px !important;
}

/deep/ .el-form-item {
  margin-bottom: 37px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips {
  margin-bottom: 37px;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}
</style>